<?php $this->load->view('config/header');?>
<h3>Multi content - Body container</h3>
<div class="line-separtor"></div>
<br/>
	<a href="<?php echo site_url()?>multicontent" class="btn btn-primary">Kembali ke List head content </a>
	<a href="<?php echo site_url()?>multicontainer/add/<?php echo $idMultiContent; ?>" class="btn btn-primary"> Content baru </a>
<br/>
<br/>	
	<?php $success = $this->session->flashdata('success');?>
	<?php if ($success):?>
		<div class="alert alert-success">
			Data telah tersimpan
		</div>
	<?php endif?>
	
	<?php $error = $this->session->flashdata('error');?>
	<?php if ($error):?>
		<div class="alert alert-error">
			Data gagal tersimpan
		</div>
	<?php endif?>
	
	<?php $delete = $this->session->flashdata('delete');?>
	<?php if ($delete):?>
		<div class="alert alert-success">
			Data telah terhapus
		</div>
	<?php endif?>
<br/>
<?php if (@$results):?>
<b>Title Head Content : <?php echo @$results[0]['title_multi_content']; ?></b>
<?php else:?>
<b>Title Head Content : - </b>	
<?php endif;?>
<br/><br/>
<table class="table table-condensed table-hover">
	<thead>
		<th>#</th>
		<th>Title Content</th>
		<th>date create</th>
		<th>Aksi</th>
	</thead>
	<tbody>
		<?php if (@$results):?>
			<?php $i=1;?>
			<?php foreach ($results as $row):?>
			<tr>
				<td><?php echo $i;?></td>
				<td><?php echo $row['title_multi_container']?></td>
				<td><?php echo date('d-m-Y', strtotime($row['date_multi_container']))?></td>
				<td>
					<a href="<?php echo site_url()?>multicontainer/edit/<?php echo $row['id_multi_container']?>/<?php echo $idMultiContent; ?>" class="icon-edit"></a>&nbsp;
					<a href="<?php echo site_url()?>multicontainer/delete/<?php echo $row['id_multi_container']?>/<?php echo $idMultiContent; ?>" class="icon-trash" onclick="return confirm('Anda yakin akan menghapus data ini?');"></a>
				</td>
			</tr>
			<?php $i++;?>
			<?php endforeach?>
		<?php else:?>
			<tr>
				<td colspan="5">
					<br/>
					<div class="alert alert-error" style="text-align:center">
						Tidak ada record
					</div>
				</td>
			</tr>
		<?php endif?>
	</tbody>
</table><br/><i>*Maksimal 100 content</i><br/>
<?php $this->load->view('config/footer');?>